drawMessage

open fun drawMessage(context: DrawContext, textRenderer: TextRenderer, x: Int, y: Int, width: Int, height: Int, color: Int)

Draws the widgets message with standard edge padding and positioning.

Author

fzzyhmstrs

Since

0.6.0

Parameters

context

DrawContext

textRenderer

TextRenderer

x

X position for rendering. This is not necessarily the widgets x position. Subclasses can shift this position, to, for example, shift the label over to make room for an icon.

y

Y position for rendering. This is not necessarily the widgets y position. Subclasses can shift this position, to, for example, shift the label up to fit something underneath it.

width

render width. Not necessarily widget width. If you modify x, it's recommended to counter-modify this to keep rendered space consistent with the background

height

render height. Not necessarily widget height. If you modify y, it's recommended to counter-modify this to keep rendered space consistent with the background

color

Int representation of text color